﻿@model IEnumerable<Project_veilingsite.Models.VeilingModel>


@{
    ViewBag.Title = "Index";
}

<div id="content">
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <div class="SearchUitgebreid">
        <h1>Uitgebreid zoeken</h1>
        <br />


       @* @using (Html.BeginForm("Index"))
        {
       *@

        @using (Ajax.BeginForm(
        new AjaxOptions{
            HttpMethod = "post",
            InsertionMode = InsertionMode.Replace,
            UpdateTargetId = "veiling_resultaten"
        }))
        {
        <div class="labelSearch">
                @Html.Label("Filter op Genre:")<br />
            </div>
            <br />
            @Html.DropDownList("genres", "Select genre");
       
            <div class="labelSearch">
                <br />
                @Html.Label("Filter op prijs:")
            </div>
            <br />
       
            @Html.RadioButton("Prijs", "0", true);<span> Geen prijs geselecteerd </span>
            <br />
            @Html.RadioButton("Prijs", "1", false);<span> 0 - 50</span><br />
            @Html.RadioButton("Prijs", "2", false);<span> 50 - 100</span><br />
            @Html.RadioButton("Prijs", "3", false);<span> 100 - 200</span> <br />
            @Html.RadioButton("Prijs", "4", false);<span>>200</span><br />
            <br />
        
            <div class="labelSearch">
                @Html.Label("Filter op eind en begindatum")
            </div>
            <br />
          
            @Html.Label("Begindatum: ");<br />
            @Html.TextBox("begindatum", null, new { @class = "datefield", type = "date" });<br />
            @Html.Label("Einddatum: ");<br />
            @Html.TextBox("einddatum", null, new { @class = "datefield", type = "date" });<br />
            <br />
   
            <input type="submit" value="Zoek" class="btn" />
        }
    </div>



    <h1>Resultaten:</h1>

    @Html.Partial("_veilingen", Model) @* Partial view _veilingen ophalen en de Model meegeven *@

    @*       @foreach (var veiling in Model.ToArray())
        {
            @Html.Partial("_veilingen", Model); //Partial view _veilingen opvragen met gegevens veiling
        }*@

</div>
<!-- einde #content (overzichten veilingen) -->

@Html.Partial("_sidebar");